<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>3-为什么需要构造函数出现呢?</title>
	</head>
	<body>
		<script type="text/javascript">
			var users = [
				{
					username:'李宝莉',
					age:18,
				},
				{
					username:'樊文卓',
					age:20
				}
			];
			
			//构造函数
			function User(username,age){
				this.username = username;
				this.age = age;
			}
			new User('李宝莉',19);
			
			
			
		</script>
	</body>
</html>
